<!doctype html>
<html class="default no-js">
<head>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<title>Buffer2D | ts</title>
	<meta name="description" content="Documentation for ts">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<link rel="stylesheet" href="../assets/css/main.css">
</head>
<body>
<header>
	<div class="tsd-page-toolbar">
		<div class="container">
			<div class="table-wrap">
				<div class="table-cell" id="tsd-search" data-index="../assets/js/search.json" data-base="..">
					<div class="field">
						<label for="tsd-search-field" class="tsd-widget search no-caption">Search</label>
						<input id="tsd-search-field" type="text" />
					</div>
					<ul class="results">
						<li class="state loading">Preparing search index...</li>
						<li class="state failure">The search index is not available</li>
					</ul>
					<a href="../index.html" class="title">ts</a>
				</div>
				<div class="table-cell" id="tsd-widgets">
					<div id="tsd-filter">
						<a href="#" class="tsd-widget options no-caption" data-toggle="options">Options</a>
						<div class="tsd-filter-group">
							<div class="tsd-select" id="tsd-filter-visibility">
								<span class="tsd-select-label">All</span>
								<ul class="tsd-select-list">
									<li data-value="public">Public</li>
									<li data-value="protected">Public/Protected</li>
									<li data-value="private" class="selected">All</li>
								</ul>
							</div>
							<input type="checkbox" id="tsd-filter-inherited" checked />
							<label class="tsd-widget" for="tsd-filter-inherited">Inherited</label>
							<input type="checkbox" id="tsd-filter-externals" checked />
							<label class="tsd-widget" for="tsd-filter-externals">Externals</label>
							<input type="checkbox" id="tsd-filter-only-exported" />
							<label class="tsd-widget" for="tsd-filter-only-exported">Only exported</label>
						</div>
					</div>
					<a href="#" class="tsd-widget menu no-caption" data-toggle="menu">Menu</a>
				</div>
			</div>
		</div>
	</div>
	<div class="tsd-page-title">
		<div class="container">
			<ul class="tsd-breadcrumb">
				<li>
					<a href="../globals.html">Globals</a>
				</li>
				<li>
					<a href="../modules/_laya_webgl_utils_buffer2d_.html">&quot;laya/webgl/utils/Buffer2D&quot;</a>
				</li>
				<li>
					<a href="_laya_webgl_utils_buffer2d_.buffer2d.html">Buffer2D</a>
				</li>
			</ul>
			<h1>Class Buffer2D</h1>
		</div>
	</div>
</header>
<div class="container container-main">
	<div class="row">
		<div class="col-8 col-content">
			<section class="tsd-panel tsd-hierarchy">
				<h3>Hierarchy</h3>
				<ul class="tsd-hierarchy">
					<li>
						<span class="target">Buffer2D</span>
					</li>
				</ul>
			</section>
			<section class="tsd-panel-group tsd-index-group">
				<h2>Index</h2>
				<section class="tsd-panel tsd-index-panel">
					<div class="tsd-index-content">
						<section class="tsd-index-section ">
							<h3>Constructors</h3>
							<ul class="tsd-index-list">
								<li class="tsd-kind-constructor tsd-parent-kind-class"><a href="_laya_webgl_utils_buffer2d_.buffer2d.html#constructor" class="tsd-kind-icon">constructor</a></li>
							</ul>
						</section>
						<section class="tsd-index-section ">
							<h3>Properties</h3>
							<ul class="tsd-index-list">
								<li class="tsd-kind-property tsd-parent-kind-class"><a href="_laya_webgl_utils_buffer2d_.buffer2d.html#_floatarray32" class="tsd-kind-icon">_float<wbr>Array32</a></li>
								<li class="tsd-kind-property tsd-parent-kind-class"><a href="_laya_webgl_utils_buffer2d_.buffer2d.html#_uint16array" class="tsd-kind-icon">_uint16<wbr>Array</a></li>
								<li class="tsd-kind-property tsd-parent-kind-class"><a href="_laya_webgl_utils_buffer2d_.buffer2d.html#_uint32array" class="tsd-kind-icon">_uint32<wbr>Array</a></li>
								<li class="tsd-kind-property tsd-parent-kind-class"><a href="_laya_webgl_utils_buffer2d_.buffer2d.html#_upload" class="tsd-kind-icon">_upload</a></li>
								<li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><a href="_laya_webgl_utils_buffer2d_.buffer2d.html#float32" class="tsd-kind-icon">FLOAT32</a></li>
								<li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><a href="_laya_webgl_utils_buffer2d_.buffer2d.html#short" class="tsd-kind-icon">SHORT</a></li>
							</ul>
						</section>
						<section class="tsd-index-section ">
							<h3>Accessors</h3>
							<ul class="tsd-index-list">
								<li class="tsd-kind-get-signature tsd-parent-kind-class"><a href="_laya_webgl_utils_buffer2d_.buffer2d.html#bufferlength" class="tsd-kind-icon">buffer<wbr>Length</a></li>
								<li class="tsd-kind-set-signature tsd-parent-kind-class"><a href="_laya_webgl_utils_buffer2d_.buffer2d.html#bytelength" class="tsd-kind-icon">byte<wbr>Length</a></li>
							</ul>
						</section>
						<section class="tsd-index-section ">
							<h3>Methods</h3>
							<ul class="tsd-index-list">
								<li class="tsd-kind-method tsd-parent-kind-class"><a href="_laya_webgl_utils_buffer2d_.buffer2d.html#_bind_subupload" class="tsd-kind-icon">_bind_<wbr>sub<wbr>Upload</a></li>
								<li class="tsd-kind-method tsd-parent-kind-class"><a href="_laya_webgl_utils_buffer2d_.buffer2d.html#_bind_upload" class="tsd-kind-icon">_bind_<wbr>upload</a></li>
								<li class="tsd-kind-method tsd-parent-kind-class"><a href="_laya_webgl_utils_buffer2d_.buffer2d.html#_disposeresource" class="tsd-kind-icon">_dispose<wbr>Resource</a></li>
								<li class="tsd-kind-method tsd-parent-kind-class"><a href="_laya_webgl_utils_buffer2d_.buffer2d.html#_resizebuffer" class="tsd-kind-icon">_resize<wbr>Buffer</a></li>
								<li class="tsd-kind-method tsd-parent-kind-class"><a href="_laya_webgl_utils_buffer2d_.buffer2d.html#append" class="tsd-kind-icon">append</a></li>
								<li class="tsd-kind-method tsd-parent-kind-class"><a href="_laya_webgl_utils_buffer2d_.buffer2d.html#appendu16array" class="tsd-kind-icon">append<wbr>U16<wbr>Array</a></li>
								<li class="tsd-kind-method tsd-parent-kind-class"><a href="_laya_webgl_utils_buffer2d_.buffer2d.html#clear" class="tsd-kind-icon">clear</a></li>
								<li class="tsd-kind-method tsd-parent-kind-class"><a href="_laya_webgl_utils_buffer2d_.buffer2d.html#getbuffer" class="tsd-kind-icon">get<wbr>Buffer</a></li>
								<li class="tsd-kind-method tsd-parent-kind-class"><a href="_laya_webgl_utils_buffer2d_.buffer2d.html#getfloat32array" class="tsd-kind-icon">get<wbr>Float32<wbr>Array</a></li>
								<li class="tsd-kind-method tsd-parent-kind-class"><a href="_laya_webgl_utils_buffer2d_.buffer2d.html#needsize" class="tsd-kind-icon">need<wbr>Size</a></li>
								<li class="tsd-kind-method tsd-parent-kind-class"><a href="_laya_webgl_utils_buffer2d_.buffer2d.html#setbytelength" class="tsd-kind-icon">set<wbr>Byte<wbr>Length</a></li>
								<li class="tsd-kind-method tsd-parent-kind-class"><a href="_laya_webgl_utils_buffer2d_.buffer2d.html#setneedupload" class="tsd-kind-icon">set<wbr>Need<wbr>Upload</a></li>
								<li class="tsd-kind-method tsd-parent-kind-class"><a href="_laya_webgl_utils_buffer2d_.buffer2d.html#subupload" class="tsd-kind-icon">sub<wbr>Upload</a></li>
							</ul>
						</section>
					</div>
				</section>
			</section>
			<section class="tsd-panel-group tsd-member-group ">
				<h2>Constructors</h2>
				<section class="tsd-panel tsd-member tsd-kind-constructor tsd-parent-kind-class">
					<a name="constructor" class="tsd-anchor"></a>
					<h3>constructor</h3>
					<ul class="tsd-signatures tsd-kind-constructor tsd-parent-kind-class">
						<li class="tsd-signature tsd-kind-icon">new <wbr>Buffer2D<span class="tsd-signature-symbol">(</span>buffer<span class="tsd-signature-symbol">: </span><a href="_laya_renderengine_buffer_.buffer.html" class="tsd-signature-type">Buffer</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="_laya_webgl_utils_buffer2d_.buffer2d.html" class="tsd-signature-type">Buffer2D</a></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
								<ul>
									<li>Defined in laya/webgl/utils/Buffer2D.ts:50</li>
								</ul>
							</aside>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5>buffer: <a href="_laya_renderengine_buffer_.buffer.html" class="tsd-signature-type">Buffer</a></h5>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <a href="_laya_webgl_utils_buffer2d_.buffer2d.html" class="tsd-signature-type">Buffer2D</a></h4>
						</li>
					</ul>
				</section>
			</section>
			<section class="tsd-panel-group tsd-member-group ">
				<h2>Properties</h2>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
					<a name="_floatarray32" class="tsd-anchor"></a>
					<h3>_float<wbr>Array32</h3>
					<div class="tsd-signature tsd-kind-icon">_float<wbr>Array32<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Float32Array</span></div>
					<aside class="tsd-sources">
						<ul>
							<li>Defined in laya/webgl/utils/Buffer2D.ts:16</li>
						</ul>
					</aside>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
					<a name="_uint16array" class="tsd-anchor"></a>
					<h3>_uint16<wbr>Array</h3>
					<div class="tsd-signature tsd-kind-icon">_uint16<wbr>Array<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Uint16Array</span></div>
					<aside class="tsd-sources">
						<ul>
							<li>Defined in laya/webgl/utils/Buffer2D.ts:18</li>
						</ul>
					</aside>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
					<a name="_uint32array" class="tsd-anchor"></a>
					<h3>_uint32<wbr>Array</h3>
					<div class="tsd-signature tsd-kind-icon">_uint32<wbr>Array<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Uint32Array</span></div>
					<aside class="tsd-sources">
						<ul>
							<li>Defined in laya/webgl/utils/Buffer2D.ts:17</li>
						</ul>
					</aside>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
					<a name="_upload" class="tsd-anchor"></a>
					<h3>_upload</h3>
					<div class="tsd-signature tsd-kind-icon">_upload<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> = true</span></div>
					<aside class="tsd-sources">
						<ul>
							<li>Defined in laya/webgl/utils/Buffer2D.ts:12</li>
						</ul>
					</aside>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-static">
					<a name="float32" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagStatic">Static</span> FLOAT32</h3>
					<div class="tsd-signature tsd-kind-icon">FLOAT32<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> = 4</span></div>
					<aside class="tsd-sources">
						<ul>
							<li>Defined in laya/webgl/utils/Buffer2D.ts:7</li>
						</ul>
					</aside>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-static">
					<a name="short" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagStatic">Static</span> SHORT</h3>
					<div class="tsd-signature tsd-kind-icon">SHORT<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> = 2</span></div>
					<aside class="tsd-sources">
						<ul>
							<li>Defined in laya/webgl/utils/Buffer2D.ts:8</li>
						</ul>
					</aside>
				</section>
			</section>
			<section class="tsd-panel-group tsd-member-group ">
				<h2>Accessors</h2>
				<section class="tsd-panel tsd-member tsd-kind-get-signature tsd-parent-kind-class">
					<a name="bufferlength" class="tsd-anchor"></a>
					<h3>buffer<wbr>Length</h3>
					<ul class="tsd-signatures tsd-kind-get-signature tsd-parent-kind-class">
						<li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">get</span> bufferLength<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
								<ul>
									<li>Defined in laya/webgl/utils/Buffer2D.ts:22</li>
								</ul>
							</aside>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">number</span></h4>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-set-signature tsd-parent-kind-class">
					<a name="bytelength" class="tsd-anchor"></a>
					<h3>byte<wbr>Length</h3>
					<ul class="tsd-signatures tsd-kind-set-signature tsd-parent-kind-class">
						<li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">set</span> byteLength<span class="tsd-signature-symbol">(</span>value<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
								<ul>
									<li>Defined in laya/webgl/utils/Buffer2D.ts:26</li>
								</ul>
							</aside>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5>value: <span class="tsd-signature-type">number</span></h5>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
						</li>
					</ul>
				</section>
			</section>
			<section class="tsd-panel-group tsd-member-group ">
				<h2>Methods</h2>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
					<a name="_bind_subupload" class="tsd-anchor"></a>
					<h3>_bind_<wbr>sub<wbr>Upload</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
						<li class="tsd-signature tsd-kind-icon">_bind_<wbr>sub<wbr>Upload<span class="tsd-signature-symbol">(</span>offset<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">number</span>, dataStart<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">number</span>, dataLength<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
								<ul>
									<li>Defined in laya/webgl/utils/Buffer2D.ts:144</li>
								</ul>
							</aside>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5><span class="tsd-flag ts-flagDefault value">Default value</span> offset: <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> = 0</span></h5>
								</li>
								<li>
									<h5><span class="tsd-flag ts-flagDefault value">Default value</span> dataStart: <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> = 0</span></h5>
								</li>
								<li>
									<h5><span class="tsd-flag ts-flagDefault value">Default value</span> dataLength: <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> = 0</span></h5>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
					<a name="_bind_upload" class="tsd-anchor"></a>
					<h3>_bind_<wbr>upload</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
						<li class="tsd-signature tsd-kind-icon">_bind_<wbr>upload<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
								<ul>
									<li>Defined in laya/webgl/utils/Buffer2D.ts:134</li>
								</ul>
							</aside>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
					<a name="_disposeresource" class="tsd-anchor"></a>
					<h3>_dispose<wbr>Resource</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
						<li class="tsd-signature tsd-kind-icon">_dispose<wbr>Resource<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
								<ul>
									<li>Defined in laya/webgl/utils/Buffer2D.ts:252</li>
								</ul>
							</aside>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
					<a name="_resizebuffer" class="tsd-anchor"></a>
					<h3>_resize<wbr>Buffer</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
						<li class="tsd-signature tsd-kind-icon">_resize<wbr>Buffer<span class="tsd-signature-symbol">(</span>nsz<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, copy<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="_laya_webgl_utils_buffer2d_.buffer2d.html" class="tsd-signature-type">Buffer2D</a></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
								<ul>
									<li>Defined in laya/webgl/utils/Buffer2D.ts:160</li>
								</ul>
							</aside>
							<div class="tsd-comment tsd-typography">
								<div class="lead">
									<p>重新分配buffer大小，如果nsz比原来的小则什么都不做。</p>
								</div>
							</div>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5>nsz: <span class="tsd-signature-type">number</span></h5>
									<div class="tsd-comment tsd-typography">
										<p>buffer大小，单位是byte。</p>
									</div>
								</li>
								<li>
									<h5>copy: <span class="tsd-signature-type">boolean</span></h5>
									<div class="tsd-comment tsd-typography">
										<p>是否拷贝原来的buffer的数据。</p>
									</div>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <a href="_laya_webgl_utils_buffer2d_.buffer2d.html" class="tsd-signature-type">Buffer2D</a></h4>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
					<a name="append" class="tsd-anchor"></a>
					<h3>append</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
						<li class="tsd-signature tsd-kind-icon">append<span class="tsd-signature-symbol">(</span>data<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
								<ul>
									<li>Defined in laya/webgl/utils/Buffer2D.ts:188</li>
								</ul>
							</aside>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5>data: <span class="tsd-signature-type">any</span></h5>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
					<a name="appendu16array" class="tsd-anchor"></a>
					<h3>append<wbr>U16<wbr>Array</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
						<li class="tsd-signature tsd-kind-icon">append<wbr>U16<wbr>Array<span class="tsd-signature-symbol">(</span>data<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Uint16Array</span>, len<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
								<ul>
									<li>Defined in laya/webgl/utils/Buffer2D.ts:212</li>
								</ul>
							</aside>
							<div class="tsd-comment tsd-typography">
								<div class="lead">
									<p>附加Uint16Array的数据。数据长度是len。byte的话要*2</p>
								</div>
							</div>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5>data: <span class="tsd-signature-type">Uint16Array</span></h5>
								</li>
								<li>
									<h5>len: <span class="tsd-signature-type">number</span></h5>
									<div class="tsd-comment tsd-typography">
									</div>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
					<a name="clear" class="tsd-anchor"></a>
					<h3>clear</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
						<li class="tsd-signature tsd-kind-icon">clear<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
								<ul>
									<li>Defined in laya/webgl/utils/Buffer2D.ts:264</li>
								</ul>
							</aside>
							<div class="tsd-comment tsd-typography">
								<div class="lead">
									<p>清理数据。保留ArrayBuffer</p>
								</div>
							</div>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
					<a name="getbuffer" class="tsd-anchor"></a>
					<h3>get<wbr>Buffer</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
						<li class="tsd-signature tsd-kind-icon">get<wbr>Buffer<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">ArrayBuffer</span></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
								<ul>
									<li>Defined in laya/webgl/utils/Buffer2D.ts:232</li>
								</ul>
							</aside>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">ArrayBuffer</span></h4>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
					<a name="getfloat32array" class="tsd-anchor"></a>
					<h3>get<wbr>Float32<wbr>Array</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
						<li class="tsd-signature tsd-kind-icon">get<wbr>Float32<wbr>Array<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Float32Array</span></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
								<ul>
									<li>Defined in laya/webgl/utils/Buffer2D.ts:56</li>
								</ul>
							</aside>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Float32Array</span></h4>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
					<a name="needsize" class="tsd-anchor"></a>
					<h3>need<wbr>Size</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
						<li class="tsd-signature tsd-kind-icon">need<wbr>Size<span class="tsd-signature-symbol">(</span>sz<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
								<ul>
									<li>Defined in laya/webgl/utils/Buffer2D.ts:42</li>
								</ul>
							</aside>
							<div class="tsd-comment tsd-typography">
								<div class="lead">
									<p>在当前的基础上需要多大空间，单位是byte</p>
								</div>
							</div>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5>sz: <span class="tsd-signature-type">number</span></h5>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">number</span></h4>
							<p>增加大小之前的写位置。单位是byte</p>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
					<a name="setbytelength" class="tsd-anchor"></a>
					<h3>set<wbr>Byte<wbr>Length</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
						<li class="tsd-signature tsd-kind-icon">set<wbr>Byte<wbr>Length<span class="tsd-signature-symbol">(</span>value<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
								<ul>
									<li>Defined in laya/webgl/utils/Buffer2D.ts:30</li>
								</ul>
							</aside>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5>value: <span class="tsd-signature-type">number</span></h5>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
					<a name="setneedupload" class="tsd-anchor"></a>
					<h3>set<wbr>Need<wbr>Upload</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
						<li class="tsd-signature tsd-kind-icon">set<wbr>Need<wbr>Upload<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
								<ul>
									<li>Defined in laya/webgl/utils/Buffer2D.ts:236</li>
								</ul>
							</aside>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
					<a name="subupload" class="tsd-anchor"></a>
					<h3>sub<wbr>Upload</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
						<li class="tsd-signature tsd-kind-icon">sub<wbr>Upload<span class="tsd-signature-symbol">(</span>offset<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">number</span>, dataStart<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">number</span>, dataLength<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
								<ul>
									<li>Defined in laya/webgl/utils/Buffer2D.ts:242</li>
								</ul>
							</aside>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5><span class="tsd-flag ts-flagDefault value">Default value</span> offset: <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> = 0</span></h5>
								</li>
								<li>
									<h5><span class="tsd-flag ts-flagDefault value">Default value</span> dataStart: <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> = 0</span></h5>
								</li>
								<li>
									<h5><span class="tsd-flag ts-flagDefault value">Default value</span> dataLength: <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> = 0</span></h5>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4>
						</li>
					</ul>
				</section>
			</section>
		</div>
		<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
			<nav class="tsd-navigation primary">
				<ul>
					<li class="globals  ">
						<a href="../globals.html"><em>Globals</em></a>
					</li>
					<li class="current tsd-kind-module">
						<a href="../modules/_laya_webgl_utils_buffer2d_.html">&quot;laya/webgl/utils/<wbr>Buffer2<wbr>D&quot;</a>
					</li>
				</ul>
			</nav>
			<nav class="tsd-navigation secondary menu-sticky">
				<ul class="before-current">
				</ul>
				<ul class="current">
					<li class="current tsd-kind-class tsd-parent-kind-module">
						<a href="_laya_webgl_utils_buffer2d_.buffer2d.html" class="tsd-kind-icon">Buffer2D</a>
						<ul>
							<li class=" tsd-kind-constructor tsd-parent-kind-class">
								<a href="_laya_webgl_utils_buffer2d_.buffer2d.html#constructor" class="tsd-kind-icon">constructor</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class">
								<a href="_laya_webgl_utils_buffer2d_.buffer2d.html#_floatarray32" class="tsd-kind-icon">_float<wbr>Array32</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class">
								<a href="_laya_webgl_utils_buffer2d_.buffer2d.html#_uint16array" class="tsd-kind-icon">_uint16<wbr>Array</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class">
								<a href="_laya_webgl_utils_buffer2d_.buffer2d.html#_uint32array" class="tsd-kind-icon">_uint32<wbr>Array</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class">
								<a href="_laya_webgl_utils_buffer2d_.buffer2d.html#_upload" class="tsd-kind-icon">_upload</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-static">
								<a href="_laya_webgl_utils_buffer2d_.buffer2d.html#float32" class="tsd-kind-icon">FLOAT32</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-static">
								<a href="_laya_webgl_utils_buffer2d_.buffer2d.html#short" class="tsd-kind-icon">SHORT</a>
							</li>
							<li class=" tsd-kind-get-signature tsd-parent-kind-class">
								<a href="_laya_webgl_utils_buffer2d_.buffer2d.html#bufferlength" class="tsd-kind-icon">buffer<wbr>Length</a>
							</li>
							<li class=" tsd-kind-set-signature tsd-parent-kind-class">
								<a href="_laya_webgl_utils_buffer2d_.buffer2d.html#bytelength" class="tsd-kind-icon">byte<wbr>Length</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class">
								<a href="_laya_webgl_utils_buffer2d_.buffer2d.html#_bind_subupload" class="tsd-kind-icon">_bind_<wbr>sub<wbr>Upload</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class">
								<a href="_laya_webgl_utils_buffer2d_.buffer2d.html#_bind_upload" class="tsd-kind-icon">_bind_<wbr>upload</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class">
								<a href="_laya_webgl_utils_buffer2d_.buffer2d.html#_disposeresource" class="tsd-kind-icon">_dispose<wbr>Resource</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class">
								<a href="_laya_webgl_utils_buffer2d_.buffer2d.html#_resizebuffer" class="tsd-kind-icon">_resize<wbr>Buffer</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class">
								<a href="_laya_webgl_utils_buffer2d_.buffer2d.html#append" class="tsd-kind-icon">append</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class">
								<a href="_laya_webgl_utils_buffer2d_.buffer2d.html#appendu16array" class="tsd-kind-icon">append<wbr>U16<wbr>Array</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class">
								<a href="_laya_webgl_utils_buffer2d_.buffer2d.html#clear" class="tsd-kind-icon">clear</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class">
								<a href="_laya_webgl_utils_buffer2d_.buffer2d.html#getbuffer" class="tsd-kind-icon">get<wbr>Buffer</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class">
								<a href="_laya_webgl_utils_buffer2d_.buffer2d.html#getfloat32array" class="tsd-kind-icon">get<wbr>Float32<wbr>Array</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class">
								<a href="_laya_webgl_utils_buffer2d_.buffer2d.html#needsize" class="tsd-kind-icon">need<wbr>Size</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class">
								<a href="_laya_webgl_utils_buffer2d_.buffer2d.html#setbytelength" class="tsd-kind-icon">set<wbr>Byte<wbr>Length</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class">
								<a href="_laya_webgl_utils_buffer2d_.buffer2d.html#setneedupload" class="tsd-kind-icon">set<wbr>Need<wbr>Upload</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class">
								<a href="_laya_webgl_utils_buffer2d_.buffer2d.html#subupload" class="tsd-kind-icon">sub<wbr>Upload</a>
							</li>
						</ul>
					</li>
				</ul>
				<ul class="after-current">
				</ul>
			</nav>
		</div>
	</div>
</div>
<footer>
	<div class="container">
		<h2>Legend</h2>
		<div class="tsd-legend-group">
			<ul class="tsd-legend">
				<li class="tsd-kind-class"><span class="tsd-kind-icon">Class</span></li>
				<li class="tsd-kind-class tsd-has-type-parameter"><span class="tsd-kind-icon">Class with type parameter</span></li>
				<li class="tsd-kind-constructor tsd-parent-kind-class"><span class="tsd-kind-icon">Constructor</span></li>
				<li class="tsd-kind-property tsd-parent-kind-class"><span class="tsd-kind-icon">Property</span></li>
				<li class="tsd-kind-method tsd-parent-kind-class"><span class="tsd-kind-icon">Method</span></li>
			</ul>
			<ul class="tsd-legend">
				<li class="tsd-kind-object-literal"><span class="tsd-kind-icon">Object literal</span></li>
				<li class="tsd-kind-variable"><span class="tsd-kind-icon">Variable</span></li>
				<li class="tsd-kind-function"><span class="tsd-kind-icon">Function</span></li>
				<li class="tsd-kind-type-alias"><span class="tsd-kind-icon">Type alias</span></li>
			</ul>
			<ul class="tsd-legend">
				<li class="tsd-kind-enum"><span class="tsd-kind-icon">Enumeration</span></li>
			</ul>
			<ul class="tsd-legend">
				<li class="tsd-kind-interface"><span class="tsd-kind-icon">Interface</span></li>
			</ul>
			<ul class="tsd-legend">
				<li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><span class="tsd-kind-icon">Static property</span></li>
			</ul>
		</div>
	</div>
</footer>
<div class="overlay"></div>
<script src="../assets/js/main.js"></script>
</body>
</html>